#!/usr/bin/php -q 
<?php
/**
 * BenderModeler
 * @author Juan Carlos Jarquin <zetta>
 * @author Vicente Mendoza  <chentepixtol>
 */

error_reporting( -1 ); // making strict =D
set_error_handler(create_function('$a, $b, $c, $d', 'throw new ErrorException($b, 0, $a, $c, $d);'), E_ALL & ~E_NOTICE);
require_once 'application/lib/autoloader/BenderAutoloader.php';
$autoloader = BenderAutoloader::getInstance('cache/autoloadCache.file',true)->register();


try
{
    $output = CommandLineInterface::getInstance();
    $cli = new CommandLineInterpreter();
    $cli->run();
}
catch (Exception $e)
{
    if(isset($output))
        $output->renderException($e);
    else
        throw $e; 
}


